package xyz.jcat.security;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class UserAuthentication {

    private Long userId;
    private List<RoleGrantedAuthority> roles;

    public UserAuthentication(Long userId, List<RoleGrantedAuthority> roles) {
        this.userId = userId;
        this.roles = roles;
    }
}
